//
//  ToningSolutionsCell.m
//  WE
//
//  Created by 要帅气的生活 on 15/11/25.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "ToningSolutionsCell.h"
#import "BaseView.h"
@implementation ToningSolutionsCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        _img = [UIImageView new];
        
        [self.contentView addSubview:_img];
        
        _name = [[UILabel alloc] init];
        [self.contentView addSubview:_name];
        
        _button  =[UILabel new];
        [self.contentView addSubview:_button];
        
        _symptoms = [UILabel new];
        [self.contentView addSubview:_symptoms];
    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    
    _img.frame = CGRectMake(5, 5, self.contentView.frame.size.width-10, self.contentView.frame.size.height/2-5);
    _img.backgroundColor = [UIColor redColor];
    _name.frame = CGRectMake(15, self.contentView.frame.size.height/2+10, self.contentView.frame.size.width-15 , 35);
    _name.font = [UIFont boldSystemFontOfSize:18];
    //_name.backgroundColor = [UIColor yellowColor];
    
    _button.frame = CGRectMake(self.contentView.frame.size.width/3*2- 15 , self.contentView.frame.size.height/2+45, self.contentView.frame.size.width/3, 45);
    _button.text = @"查看详情";
    _button.layer.cornerRadius = 6;
    _button.layer.borderColor = [UIColor blueColor].CGColor;
    _button.layer.borderWidth = 0.7;
    _button.layer.masksToBounds = YES;
    _button.textAlignment = 1;
    _button.textColor = [UIColor blueColor];
    
    _symptoms.frame = CGRectMake(15,  self.contentView.frame.size.height/2+45, self.contentView.frame.size.width/2, 50);
    _symptoms.backgroundColor = [UIColor redColor];
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
